#include <TinkerKit.h>
TKGyro gyro(I1, I2, TK_X1);
TKLightSensor ldr(I0);

int led = 13;

void setup() {
  pinMode(led, OUTPUT);
  Serial.begin(4800);
}

void loop() {
  digitalWrite(led, HIGH);
  Serial.println("$GPGGA,184333.07,1929.439,S,02410.387,E,1,04,2.8,1000.00,M,-33.9,M,,0000*65");
  delay(1000);
  digitalWrite(led, LOW);
  Serial.println("$GPGLL,1929.420,S,02410.393,E,184334.07,A,A*71");
  delay(1000);
  int xAxis = gyro.getXAxis();
  int xAxisRate = gyro.getXAxisRate();
  int yAxis = gyro.getYAxis();
  int yAxisRate = gyro.getYAxisRate();
  int light = ldr.get();
  Serial.print("$GYRO,");
  Serial.print(xAxis);
  Serial.print(",");
  Serial.println(xAxisRate);
  Serial.print(",");
  Serial.print(yAxis);
  Serial.print(",");
  Serial.println(yAxisRate);
  delay(1000);
  Serial.print("$LIGHT,");
  Serial.println(light);
  delay(1000);
}
